#include "svpwm_orthogonal.hpp"
#include <cmath>
#include <cstdio>

int main(){
    double alpha = 0;
    double beta = 0;
    SVPWM_Orthogonal svpwm;
    for ( int n = 0; n < 360; n++ ){
        double angle = n;
        double radian = angle * M_PI / 180.0;
        alpha = cos(radian);
        beta = sin(radian);
        SVPWM_Orthogonal::Result result = svpwm.calculate(alpha,beta);
        printf("%f,%f,%f,%f\n",result.p_alpha_1,result.p_alpha_2,result.p_beta_1,result.p_beta_2);
    }
    
    return 0;
}